<%= javascript_include_tag "prototype" %>

<div id="bodyPan">

<h1>Search for Webcomics</h1>

<% form_tag :action => "do_search", :update => "display_results" do -%>
  <p>
    Title: <%= text_field_tag :title %>
  </p>

<div>Webcomics containing <b>any</b> of the following categories:</div>
  <table id="categories_table">
	<tr>
  <% i = 0 %>
  <% for category in @category_list do %>
	<td>
   	<%= check_box('checkbox', category.name) %>
	<%= category.name %>
	</td>
	<% i = i+1 %>
	<% if (i == 5)%>
	 	<% i = 0 %>
		</tr>
		<tr>
	<% end %>
  <% end %>
  </tr>
  </table>
  <p>
    Last Updated: <%= radio_button_tag(:last_updated, "0", true )%> Any time
<%= radio_button_tag :last_updated, "1" %> Past Day
<%= radio_button_tag :last_updated, "2" %> Past Week
<%= radio_button_tag :last_updated, "3" %> Past Month
<%= radio_button_tag :last_updated, "4" %> Past Year
  </p>
  <p>
    <%= submit_tag "Find!" %>
  </p>
  <% end -%>

<div id="display_results"></div>
</div>